<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="../templates/principal.xhtml">

    <ui:define name="head">
        <script type="text/javascript">
            function handleListaRequest(xhr, status, args) {
                if (args.validationFailed || !args.loggedIn) {
                    PF('propostaDialog').show();
                } else {
                    PF('propostaDialog').hide();
                }
            }
        </script>
    </ui:define>

    <ui:define name="content" id="content">
        <h:form id="frmProposta">
            <p:panel id="panel" header="Bem Vindo ao Cadastro de Nova Proposta">
                <p:growl id="messages" life="5000" />

                <p:dataTable id="tabProposta" widgetVar="wtabProposta" var="proposta" value="#{propostaBean.lazyModel}" 
                             lazy="true" paginator="true" rows="12" paginatorPosition="top"
                             emptyMessage="Nenhum Registro Retornado ..." filterEvent="enter" resizableColumns="true">

                    <f:facet name="header">
                        STATUS: 3 - Preenchimento dos Documentos Necessários 
                    </f:facet>

                    <p:column headerText="Numero Proposta" sortBy="#{proposta.numProposta}" filterBy="#{proposta.numProposta}">
                        <div style="text-align: left;">
                            <h:outputText value="#{proposta.numProposta}" />
                        </div>
                    </p:column>
                    
                    <p:column headerText="Empreendimento" sortBy="#{proposta.idEmpreendimento.dscEmpreendimento}" filterBy="#{proposta.idEmpreendimento.dscEmpreendimento}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idEmpreendimento.dscEmpreendimento}" />
                        </div>
                    </p:column>

                    <p:column headerText="Assunto" sortBy="#{proposta.dscProposta}" filterBy="#{proposta.dscProposta}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.dscProposta}" />
                        </div>
                    </p:column>
                    
                    <p:column headerText="Empresa" sortBy="#{proposta.idEmpresa.nomEmpresa}" filterBy="#{proposta.idEmpresa.nomEmpresa}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idEmpresa.nomEmpresa}" />
                        </div>
                    </p:column>

                    

                    <p:column headerText="Cliente Nome Fantasia/Sobrenome" sortBy="#{proposta.idCliente.nomFantasia}" filterBy="#{proposta.idCliente.nomFantasia}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idCliente.nomFantasia}" />
                        </div>
                    </p:column>

                    <p:column style="width: 150px;">
                        <h:panelGrid columns="4" styleClass="actions" cellpadding="0">
                            <p:commandButton id="selectButtonProposta" update=":frmProposta:panel :frmProposta:messages" 
                                             icon="ui-icon-search" title="Visualizar // Alterar Proposta" oncomplete="PF('propostaDialog').show()">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />
                                <f:setPropertyActionListener value="#{false}" target="#{propostaBean.ativa}" />
                            </p:commandButton>

                            <p:commandButton id="finalizarButtonProposta" update=":frmProposta:panel :frmProposta:messages" 
                                             icon="ui-icon-note" title="Finalizar Etapa da Proposta" oncomplete="PF('confirmationFinalizar').show()">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />
                            </p:commandButton>
                            
                            <p:commandButton id="excluirButtonProposta" update=":frmProposta:panel :frmProposta:messages" 
                                             icon="ui-icon-trash" title="Excluir Proposta" oncomplete="PF('confirmation').show()">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />
                            </p:commandButton>
                        </h:panelGrid>
                    </p:column>

                </p:dataTable>

                <!-- DETALHES PROPOSTA -->
                <p:dialog id="dialog" header="Detalhes Proposta - Preenchimento dos Documentos Necessários" widgetVar="propostaDialog" resizable="true" dynamic="true"
                          width="1500" showEffect="explode" hideEffect="explode" style="text-align: left" position="left,top" maximizable="true" onHide="PF('propostaDialogCase').hide(); propostaDialogCase.toggleMaximize();">

                    <p:panel id="panelDetalhe" style="text-align: left; ">
                        <p:panelGrid id="display" style="margin-bottom:20px; text-align: left; width: 100%;">

                            <p:row>
                                <p:column colspan="4">
                                    <h:outputText value="Numero Proposta: #{propostaBean.selectedProposta.numProposta}" style="font-weight:bold;" />
                                </p:column>

                                <p:column>
                                    <p:commandButton id="selectButtonProposta" value="Visualizar Estudo em CASE" update=":frmProposta:panelDetalheCase :frmProposta:messages" 
                                                     icon="ui-icon-search" title="Visualizar Proposta - Estudo em CASE" oncomplete="PF('propostaDialogCase').show()" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Assunto:" />
                                </p:column>
                                <p:column>
                                    <h:outputText id="inDescricao" value="#{propostaBean.selectedProposta.dscProposta}" style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Arquiteto:" />
                                </p:column>
                                <p:column colspan="2">
                                    <h:outputText id="inArquiteto" value="#{propostaBean.selectedProposta.idEmpreendimento.nomArquiteto}" style="width:300px; font-weight:bold; " />
                                </p:column>
                            </p:row>
                            
                            <p:row>
                                <p:column>
                                    <h:outputText value="Empresa:" />
                                </p:column>
                                <p:column colspan="4">
                                    <p:outputLabel id="inEmpresa" value="#{propostaBean.selectedProposta.idEmpresa.nomEmpresa}" style="width:800px; font-weight:bold; " />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Cliente:" />
                                </p:column>

                                <p:column>
                                    <h:outputText id="inCliente" value="#{propostaBean.selectedProposta.idCliente.nomFantasia}" 
                                                  style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Data Proposta:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText id="imDatAbert" value="#{propostaBean.selectedProposta.datProposta}" style="font-weight:bold;">
                                        <f:convertDateTime type="date" dateStyle="short" pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Endereços:" />
                                </p:column>

                                <p:column>
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.codLogradouro.dscLogradouro}, #{end.numEndereco} #{end.dscComplemento} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>

                                <p:column>
                                    <h:outputText value="Cidade:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList.get(0).codLogradouro.codBairro.codCidade.dscCidade}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Contribuinte:" />
                                </p:column>

                                <p:column colspan="4">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.numContribuinte} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: center; color: #ffffff; background: #000000;">
                                    <h:outputText value="DOCUMENTOS" />
                                </p:column>

                                <p:column colspan="2" style="text-align: center; color: #ffffff; background: #000000;">
                                    <h:outputText value="OBSERVAÇÕES" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="ESTUDO ORÇAMENTO" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check1" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscEstudoOrcamento}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="MATRÍCULA" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check2" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscMatricula}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="LOCALIZAÇÃO (GOOGLE)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check3" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscLocalizacao}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="IPTU" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check4" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscIptu}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="ESTUDO DE MASSAS" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check5" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscEstudoMassas}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="CROQUI (Implantação/corte)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check6" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscCroqui}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="FICHA TÉCNICA (SP + fácil)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check7" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscFichaTecnicaSp}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="FICHA TÉCNICA (Case)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check8" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscFichaTecnicaCase}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="CERTIDÃO DE DADOS CADASTRAIS" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check9" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscCertidao}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="QUADRA FISCAL" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check10" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscQuadraFiscal}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="DIST/SUB" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check11" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscDistSub}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="CONSULTA PRELIMINAR (SP + fácil)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check12" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscConsultaPreliminar}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="GEGRAN (cota)" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check13" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscGegran}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column colspan="3" style="text-align: left;">
                                    <h:outputText value="QUADRO 4" />
                                </p:column>

                                <p:column colspan="2" style="text-align: left;">
                                    <p:selectOneMenu id="check14" value="#{propostaBean.selectedProposta.propostaListaDocumentos.dscQuadro}">  
                                        <f:selectItem itemLabel="SELECIONE A OBSERVAÇÃO " itemValue="" />  
                                        <f:selectItem itemLabel="OK" itemValue="OK" /> 
                                        <f:selectItem itemLabel="NÃO" itemValue="NÃO" />
                                    </p:selectOneMenu>
                                </p:column>
                            </p:row>
                        </p:panelGrid>

                        <p:commandButton value="Salvar" oncomplete="handleListaRequest(xhr, status, args)" rendered="#{!propostaBean.ativa}"
                                         icon="ui-icon-disk" actionListener="#{propostaBean.alterar}" />
                        <p:commandButton icon="ui-icon-closethick" value="Fechar" onclick="PF('propostaDialog').hide();" title="Fecha Janela das Propostas!" />
                    </p:panel>
                </p:dialog>
                <!-- EXCLUIR PROPOSTA -->
                <p:dialog header="Confirma a Exclusão dessa Proposta: #{propostaBean.selectedProposta.dscProposta}?" widgetVar="confirmation">

                    <p:commandButton value="Sim" update=":frmProposta:panel :frmProposta:messages" process="@all" oncomplete="PF('confirmation').hide(),PF('propostaDialog').hide()"
                                     actionListener="#{propostaBean.excluir}" />
                    <p:commandButton value="Não" onclick="PF('confirmation').hide();" type="button" />

                </p:dialog>
                <!-- FINALIZAR PROPOSTA -->
                <p:dialog header="Confirma a Finalização dessa Etapa: #{propostaBean.selectedProposta.dscProposta}?" widgetVar="confirmationFinalizar">

                    <p:commandButton value="Sim" update=":frmProposta:panel :frmProposta:messages" process="@all" oncomplete="PF('confirmationFinalizar').hide()"
                                     actionListener="#{propostaBean.finalizarProposta}" />
                    <p:commandButton value="Não" onclick="PF('confirmationFinalizar').hide();" type="button" />

                </p:dialog>
                <!-- DETALHES PROPOSTA - ESTUDO EM CASE -->
                <p:dialog id="dialogCase" header="Detalhes Proposta - Estudo em CASE" widgetVar="propostaDialogCase" resizable="true" dynamic="true"
                          showEffect="explode" hideEffect="explode" style="text-align: left" position="right,top" maximizable="true">

                    <p:panel id="panelDetalheCase" style="text-align: left; ">
                        <p:panelGrid id="displayCase" style="margin-bottom:20px; text-align: left; width: 100%;">

                            <p:row>
                                <p:column colspan="5">
                                    <h:outputText value="Numero Proposta: #{propostaBean.selectedProposta.numProposta}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Assunto:" />
                                </p:column>
                                <p:column colspan="4">
                                    <h:outputText id="inDescricaoCase" value="#{propostaBean.selectedProposta.dscProposta}" style="width:800px; font-weight:bold; " />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Cliente:" />
                                </p:column>

                                <p:column>
                                    <h:outputText id="inClienteCase" value="#{propostaBean.selectedProposta.idCliente.nomFantasia}" 
                                                  style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Data Proposta:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText id="imDatAbertCase" value="#{propostaBean.selectedProposta.datProposta}" style="font-weight:bold;">
                                        <f:convertDateTime type="date" dateStyle="short" pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Endereços:" />
                                </p:column>

                                <p:column colspan="4">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.codLogradouro.dscLogradouro}, #{end.numEndereco} #{end.dscComplemento} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Contribuinte:" />
                                </p:column>

                                <p:column colspan="4">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.numContribuinte} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Largura da Via:" />
                                </p:column>

                                <p:column colspan="4">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.codLogradouro.dscLogradouro} " style="font-weight:bold;" />
                                        <h:outputText value="#{end.numLargura}" style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Loteamento:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Aprov:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscAprovLot}" style="font-weight:bold;" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Não Aprov:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscNaoAprovLot}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="MELHORAMENTO VIÁRIO:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscMelhorVia}" style="width: 90%; font-weight:bold;"/>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="RUA SEM SAÍDA / VILA/ VIELA:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscRua}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="GABARITO DE ALTURA:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscGabaritoAltura}" style="font-weight:bold;" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="A PARTIR DA COTA:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscGabaritoCota}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="RECUO ESPECIAL:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscRecuo}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="OPERAÇÃO URBANA:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscOperacaoUrb}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="TOMBAMENTO CONDEPHAAT:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscTombConde}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="TOMBAMENTO CONPRESP:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscTombConp}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="TOMBAMENTO IPHAN:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscTombIphan}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="PATRIMÔNIO AMBIENTAL:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscPatrimonio}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="PROTEÇÃO DE MANANCIAL:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscProtAmbiental}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="AET:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscAet}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="CÓRREGO:" />
                                </p:column>

                                <p:column colspan="4">
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaCase.dscCorrego}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                    </p:panel>
                </p:dialog>
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>